package com.touch.account;

public enum AccountCode 
{
	NONE		((byte)0x00),
	PASSWORD	((byte)0x01),
	BANNED		((byte)0x02),
	GENDER		((byte)0x03);
	
	private byte code;
	public static AccountCode getAccountCode(byte code)
	{
		for(AccountCode acc: AccountCode.values())
			if(acc.getValue() == code)
				return acc;
		return NONE;
	}
	protected byte getValue()
	{
		return code;
	}
	private AccountCode(byte code)
	{
		this.code = code;
	}
}
